<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro" >
<div th:replace="public/header::header"></div>
<div class="span-24">
    <div class="span-16">
        <h2 th:text="${username}"> {{ username }}</h2>
            <div th:if="${username}!=${session.username}" class="box">

                <a th:text="${isfollowing}?'Stop Following':'Following'" th:href="@{/{loginname}/{follow}/{username}(loginname=${session.username},follow=${isfollowing}?'unfollow':'follow',username=${username})} ">Following</a>

                | <a th:href="@{/mentions/{username} (username=${username})} ">See Mentions</a>
            </div>
            <div th:replace="public/posts::posts (posts=${posts}) "></div>

    </div>


    <div class="span-7 last">
        <div class="box">
            <h4 th:text="'Followers:'+${followers.size()}">Followers: {{ followers_num }}</h4>
            <div th:replace="public/userlist::userlist (users=${followers})"></div>
        </div>

        <div class="box">
            <h4 th:text="'Following:'+${followings.size()}">Following: {{ following_num }}</h4>
            <div th:replace="public/userlist::userlist (users=${followings})"></div>
        </div>
    </div>
</div>
<div th:replace="public/footer::footer"></div>
</html>
